package com.mes.biz.domain;

import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 仓库对象 biz_warehouse
 * @author hwg
 * @email hwg
 * @date 2023-04-01
 */
@Data
public class BizWarehouse extends BaseEntity<BizWarehouse>
{
    private static final long serialVersionUID = 1L;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    @NotBlank(message = "仓库名称不允许为空")
    @LogField
    @FieldRemark(name = "仓库名称",field = "warehouseName")
    private String warehouseName;

    /** 负责人 */
    @Excel(name = "负责人")
    @LogField
    @FieldRemark(name = "负责人",field = "chargePerson")
    private String chargePerson;

    private String chargePersonName;
    /** 面积 */
    @Excel(name = "面积")
    @LogField
    @FieldRemark(name = "面积",field = "area")
    private String area;

    /** 排序 */
    @Excel(name = "排序")
    @LogField
    @FieldRemark(name = "排序",field = "sortNumber")
    private Integer sortNumber;

    /** 租户id */
    @Excel(name = "租户id")
    private String tenantId;

    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }

    public void setChargePerson(String chargePerson)
    {
        this.chargePerson = chargePerson;
    }

    public String getChargePerson()
    {
        return chargePerson;
    }
    public void setChargePersonName(String chargePersonName)
            {
            this.chargePersonName = chargePersonName;
            }

    public String getChargePersonName()
            {
            return chargePersonName;
            }

    public void setArea(String area)
    {
        this.area = area;
    }

    public String getArea()
    {
        return area;
    }

    public void setSortNumber(Integer sortNumber)
    {
        this.sortNumber = sortNumber;
    }

    public Integer getSortNumber()
    {
        return sortNumber;
    }

    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("warehouseName", getWarehouseName())
            .append("chargePerson", getChargePerson())
            .append("area", getArea())
            .append("sortNumber", getSortNumber())
            .append("tenantId", getTenantId())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
